using System.Collections;

namespace UI.Controls.Dictionaries
{
    /// <summary>
    /// Dictionary grid interface
    /// </summary>
    public interface IDictionaryGrid
    {
        /// <summary>
        /// Gets or sets the grid items.
        /// </summary>
        /// <value>The items.</value>
        IEnumerable Items { get; set; }
        /// <summary>
        /// Gets or sets the selected item.
        /// </summary>
        /// <value>The selected item.</value>
        object Selected { get; set; }

        /// <summary>
        /// Updates the grid after edit operation.
        /// </summary>
        /// <param name="operation">The operation.</param>
        /// <param name="item">The item.</param>
        void UpdateGrid(UpdateOperation operation, object item);
    }
}